package main;

import bean.UserInfo;
import controller.UserInfoController;

import java.util.ArrayList;
import java.util.List;

public class RunUI {
    public static void main(String[] args) throws Exception {
        UserInfoController userInfoController = new UserInfoController();
        //List<UserInfo> userInfoList = userInfoController.getUserInfo();
        UserInfo userInfo1 = new UserInfo();
        userInfo1.setId(5);
        userInfo1.setName("张三热图");
        userInfo1.setAge(22);

        List<UserInfo> userInfoList = userInfoController.getUserInfo();

        userInfoController.insertUserInfo(userInfo1);

        for(UserInfo userInfo : userInfoList){
            System.out.println(userInfo.getId()+" "+userInfo.getName()+"  "+userInfo.getAge());
        }

        UserInfo userInfo = new UserInfo();
        userInfo.setId(111111);
        userInfo.setName("我回不回家");
        userInfo.setAge(18);


    }
}
